package FunctionalInteface_Consumer;

import java.util.function.Consumer;

public class achieveConsumer2 implements Consumer<String>{

	@Override
	public void accept(String str) {
		int age = Integer.parseInt(str.split(",")[1]);
		System.out.println("年龄:" + age);
		
	}

}
